package com.chuantou.yuba.api.to;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;

/**
 * 资讯->图片内容TO
 * 
 * @author dl1001
 * 
 */
public class NewsImageContentTO extends BaseNewsTypeTO {
	// 图片地址
	@SerializedName("url")
	private String url;
	// 图片宽度
	@SerializedName("width")
	private int width;
	// 图片高度
	@SerializedName("height")
	private int height;

	public NewsImageContentTO() {
	}

	public NewsImageContentTO(Parcel source) {
		super(source);
		// TODO 需要序列化时再做
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		super.writeToParcel(dest, flags);
		// TODO 需要序列化时再做
	}

	public static final Creator<NewsImageContentTO> CREATOR = new Creator<NewsImageContentTO>() {

		@Override
		public NewsImageContentTO[] newArray(int size) {
			return new NewsImageContentTO[size];
		}

		@Override
		public NewsImageContentTO createFromParcel(Parcel source) {
			return new NewsImageContentTO(source);
		}
	};

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

}
